<?php if (!defined("BASEPATH")) exit("No direct script access allowed");

class Scholarships extends MY_Controller {

	function __construct() {
		parent::__construct();
		$this->load->model("scholarship");
	}

	function _remap($param) {
		$params = array();
		//echo $param; exit;

		$params["breadcrumbs"] = array(
			site_url() => "Home",
		);

		if($param == "index") {
			$params["breadcrumbs"][] = $this->lang->line("SCHOLARSHIPS");
			$params["getScholarship"] = $this->scholarship->getScholarship($where = "sch_del = 0 and sch_presenter ".(($this->uri->segment(1) == "preview")?(" in ('I', 'N') "):(" = 'I' "))." and (maj_presenter is null or maj_presenter ".(($this->uri->segment(1) == "preview")?(" in ('I', 'N') "):(" = 'I' ")).") and (s2c.ins_presenter is null or s2c.ins_presenter ".(($this->uri->segment(1) == "preview")?(" in ('I', 'N') "):(" = 'I' ")).")", $start = NULL, $limit = NULL, $fields = NULL, $query = NULL, $order = "insName", $dir = "ASC");
			$params["content"] = $this->load->view("page/scholarship", $params, TRUE);
		}
		$this->load->view("template/page", $params);
	}

}